﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace chat_app.NhibernateLogic.Entities
{
    public class ChatMessage
    {
        public virtual Guid Id { get; set; }

        public virtual string ConnectionId { get; set; }

        public virtual string Date { get; set; }

        public virtual string Message { get; set; }

        public ChatMessage() { }

        public ChatMessage(string connId, string date, string mess)
        {
            Id = Guid.NewGuid();
            ConnectionId = connId;
            Date = date;
            Message = mess;
        }
    }
}